package com.lzq.badminton.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzq.badminton.dto.OrderDto;
import com.lzq.badminton.dto.PayDto;
import com.lzq.badminton.entity.Order;
import com.lzq.badminton.vo.OrderPaymentVO;
import com.lzq.badminton.vo.OrderVo;
import com.lzq.badminton.vo.ResponseResult;

import java.util.List;


public interface OrderService extends IService<Order> {

    ResponseResult addOrder(OrderDto orderDto);

    OrderPaymentVO payOrder(PayDto payDto) throws Exception;

    void paySuccess(String outTradeNo);

    void userCancelById(Long id) throws Exception;

    List<OrderVo> listOrderByUser(Integer pageNum, Integer pageSize, Integer status);

    void cancleNoRefund(Long id);

    int deleteRecord();

}
